-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: resolve resampling problem for geothermal variable efficiency #1470
Conversation
Hi @yechenyan, The setting: scenario:
opts:
- 2H
sector_opts:
- 2H is invalid and - for sector-coupled models - should be scenario:
sector_opts:
- 2H In this case, your problem should not occur. See https://pypsa-eur.readthedocs.io/en/latest/configuration.html#clustering for settings |
hello, @fneum Thank you for your response. I followed your method for the configuration, but the same error still occurs. I tried to debug, and the error occurs as follows:
Part of the CSV content is as follows:
Since the resample rate for the network is 2 hours, while the resample rate for
This is my complete configuration, which can reproduce this issue:
|
Closes # (if applicable).
Changes proposed in this Pull Request
Resolve resampling problem for geothermal variable efficiency
Problem
When
resample
is set inwildcards
and bothenhanced_geothermal
andvar_cf
are enabled, such as in the following configuration:The code encounters an error because the network snapshots are being resampled to 2-hour intervals, while the geothermal efficiency is still being processed at hourly intervals. This mismatch causes the code to break at line 4546, found here:
pypsa-eur/scripts/prepare_sector_network.py
Line 4546 in 12d7107
The error information is as follows:
Fix
Adjust the resampling of geothermal efficiency according to the
resample
setting specified inwildcards
.Resample may also be gotten from
resolution_elec
Checklist
envs/environment.yaml
.config/config.default.yaml
.doc/configtables/*.csv
.doc/data_sources.rst
.doc/release_notes.rst
is added.